<?php
	
  define ('HOSTNAME', 'localhost');
  define ('S', DIRECTORY_SEPARATOR);
  define ('ROOT_DIR', str_replace(S . S, S, realpath(dirname(__FILE__) . S . '..') . S));
  define ('ENGINE_DIR', ROOT_DIR . 'engine' . S);
  define ('RUNTIME_DIR', ENGINE_DIR . 'runtime' . S);
  define ('MODEL_DIR', ENGINE_DIR . 'model' . S);
  define ('LIBS_DIR', ENGINE_DIR . 'libs' . S);
  define ('CONFIG_DIR', ROOT_DIR. 'config' . S);
  define ('PUBLIC_DIR', ROOT_DIR . 'public' . S);
  define ('COMPILED_PHP_DIR', ROOT_DIR . 'tmp' . S . 'compiled_php' . S);


  # Core functions
  require(MODEL_DIR . 'core-functions.php');



  # Nails model
  require_once(MODEL_DIR . 'Akrudo.php');
  require_once(MODEL_DIR . 'Nails.php');
  require_once(MODEL_DIR . 'Error.php');
  require_once(MODEL_DIR . 'ActiveRecord.php');
  require_once(MODEL_DIR . 'AppController.php');
  require_once(MODEL_DIR . 'AppViewer.php');
  require_once(MODEL_DIR . 'Association.php');
  require_once(MODEL_DIR . 'Column.php');
  require_once(MODEL_DIR . 'ActiveCollection.php');
  require_once(MODEL_DIR . 'Date.php');
  require_once(MODEL_DIR . 'Dir.php');
  require_once(MODEL_DIR . 'ActiveRecordCollection.php');
  require_once(MODEL_DIR . 'Common.php');
  require_once(MODEL_DIR . 'File.php');
  require_once(MODEL_DIR . 'FileHandler.php');
  require_once(MODEL_DIR . 'Inflector.php');
  require_once(MODEL_DIR . 'JS.php');
  require_once(MODEL_DIR . 'Logger.php');
  require_once(MODEL_DIR . 'Result.php');
  require_once(MODEL_DIR . 'PreCompiler.php');
  require_once(MODEL_DIR . 'ScaffoldedController.php');
  require_once(MODEL_DIR . 'SPYC.php');
  require_once(MODEL_DIR . 'Timer.php');




  # PEAR model
  //require_once "Auth.php";
  require_once "Log.php";
  require_once "MDB2.php";



  # Libs load
  require_once(LIBS_DIR . 'SPT' . S . 'SPT.php');


  # Unnecessary definitions
  define('first', 'first');
  define('last', 'last');
  define('all', 'all');



  # Nails runtime



?>